package com.bj.zspace.cloud.order.feign;

import com.bj.zspace.cloud.model.product.Product;
import com.bj.zspace.cloud.order.feign.fallback.ProductFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "service-product", fallback = ProductFeignClientFallback.class)
public interface ProductFeignClient {

    @GetMapping(value = "/api/product/{id}")
    Product getProduct(@PathVariable("id") Long productId);

}
